Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the rotor holder renderer crashing due to syncing of held item #2820

Merged

Conversation

omergunr100
Copy link
Contributor

What

When replacing the item in the rotor holder from one with a TurbineRotorBehaviour to one without the rotor holder would crash your game (most of the time).

Implementation Details

Instead of assuming the item didn't change mid-rendering, just get and null check our instance of the behaviour.

Outcome

Fix #2819

@omergunr100 omergunr100 added the type: bugfix general bug fixes label Feb 3, 2025
@omergunr100 omergunr100 requested a review from a team as a code owner February 3, 2025 11:55
@krossgg krossgg merged commit 3bff259 into GregTechCEu:1.20.1 Feb 12, 2025
3 checks passed
@omergunr100 omergunr100 deleted the 1.20.1-rotor-holder-renderer-fix branch February 14, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bugfix general bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Crash] Replacing rotor to other item in Rotor Holder will crash the game
2 participants